/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define K0_Choose_Pin GPIO_PIN_13
#define K0_Choose_GPIO_Port GPIOC
#define K1_Launch_Pin GPIO_PIN_14
#define K1_Launch_GPIO_Port GPIOC
#define K2_SingleOrContinuous_Pin GPIO_PIN_15
#define K2_SingleOrContinuous_GPIO_Port GPIOC
#define HA0_Pin GPIO_PIN_0
#define HA0_GPIO_Port GPIOA
#define HA1_Pin GPIO_PIN_1
#define HA1_GPIO_Port GPIOA
#define GD_Speed_Pin GPIO_PIN_2
#define GD_Speed_GPIO_Port GPIOA
#define GD_Speed_EXTI_IRQn EXTI2_IRQn
#define HA2_Pin GPIO_PIN_3
#define HA2_GPIO_Port GPIOA
#define HA3_Pin GPIO_PIN_4
#define HA3_GPIO_Port GPIOA
#define HA4_Pin GPIO_PIN_5
#define HA4_GPIO_Port GPIOA
#define HA5_Pin GPIO_PIN_6
#define HA5_GPIO_Port GPIOA
#define LA0_Pin GPIO_PIN_7
#define LA0_GPIO_Port GPIOA
#define HB0_Pin GPIO_PIN_0
#define HB0_GPIO_Port GPIOB
#define ADC2_voltage_Pin GPIO_PIN_1
#define ADC2_voltage_GPIO_Port GPIOB
#define GD_DanJC_Pin GPIO_PIN_2
#define GD_DanJC_GPIO_Port GPIOB
#define LB0_Pin GPIO_PIN_10
#define LB0_GPIO_Port GPIOB
#define LB1_Pin GPIO_PIN_11
#define LB1_GPIO_Port GPIOB
#define LB2_Pin GPIO_PIN_12
#define LB2_GPIO_Port GPIOB
#define LB3_Pin GPIO_PIN_13
#define LB3_GPIO_Port GPIOB
#define LB4_Pin GPIO_PIN_14
#define LB4_GPIO_Port GPIOB
#define LB5_Pin GPIO_PIN_15
#define LB5_GPIO_Port GPIOB
#define Out_DuoJi_Pin GPIO_PIN_8
#define Out_DuoJi_GPIO_Port GPIOA
#define LA1_Pin GPIO_PIN_9
#define LA1_GPIO_Port GPIOA
#define LA2_Pin GPIO_PIN_10
#define LA2_GPIO_Port GPIOA
#define LA3_Pin GPIO_PIN_11
#define LA3_GPIO_Port GPIOA
#define LA4_Pin GPIO_PIN_12
#define LA4_GPIO_Port GPIOA
#define LA5_Pin GPIO_PIN_15
#define LA5_GPIO_Port GPIOA
#define HB1_Pin GPIO_PIN_3
#define HB1_GPIO_Port GPIOB
#define HB2_Pin GPIO_PIN_4
#define HB2_GPIO_Port GPIOB
#define HB3_Pin GPIO_PIN_5
#define HB3_GPIO_Port GPIOB
#define oled_SCK_Pin GPIO_PIN_6
#define oled_SCK_GPIO_Port GPIOB
#define oled_SDA_Pin GPIO_PIN_7
#define oled_SDA_GPIO_Port GPIOB
#define HB4_Pin GPIO_PIN_8
#define HB4_GPIO_Port GPIOB
#define HB5_Pin GPIO_PIN_9
#define HB5_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
